import 'dart:ui';

import 'package:flutter_mwm/widget/dialog.dart';

abstract class UIImpl {
  void showToast(String content);

  ///提示语dialog
  void showPromptDialog(
    String content, {
    String btnText,
    bool exit,
    bool outsideDismiss = true,
    VoidCallback callback,
  });

  ///异常提示语
  void showErrorPromptDialog(
    String content,
    String error, {
    String btnText,
    bool exit,
    bool outsideDismiss = true,
    VoidCallback callback,
  });

  void showOperateDialog(
    String content, {
    String cancelText,
    String nextText,
    bool exit,
    Operate operate,
    bool outsideDismiss = true,
    VoidCallback cancelCall,
    VoidCallback nextCall,
  });
}
